import Mock from 'mockjs'
const { Random } = Mock
import { getRandomDateTime, getNowDate, getFeatureDate } from '../../../utils'

export const userList: any[] = [
  {
    id: 1,
    username: 'admin',
    password: '123456',
    nickname: '超级管理员',
    avatar: 'https://img1.baidu.com/it/u=1919046953,770482211&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
    departName: '总公司',
    departId: 1,
    tenantType: 1,
    roleIds: '1',
    postIds: '',
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    status: 0,
    sex: Random.integer(1, 2),
    remark: '@csentence()',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 2,
    username: 'test1',
    password: '123456',
    nickname: '小红',
    avatar: 'https://img2.baidu.com/it/u=2353293941,2044590242&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
    departName: '分公司一',
    departId: 2,
    tenantType: 1,
    roleIds: '2,5',
    postIds: '2',
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    status: 0,
    sex: Random.integer(1, 2),
    remark: '@csentence()',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 3,
    username: 'test2',
    password: '123456',
    nickname: '小黑',
    avatar: 'https://img1.baidu.com/it/u=63401368,3081051561&fm=253&fmt=auto&app=138&f=JPEG?w=360&h=360',
    departName: '分公司二',
    departId: 3,
    tenantType: 1,
    roleIds: '4,7',
    postIds: '3',
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    status: 0,
    sex: Random.integer(1, 2),
    remark: '@csentence()',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  }
]
